#include <iostream>
#include <stdlib.h>
#include <stack>
#include <vector>

using namespace std;

int main()
{
    vector<int> v(3,100);
    stack<int ,vector<int> > s(v);

    cout<<s.size()<<endl;
    cout<<s.top()<<endl;
    s.push(30);
    cout<<s.top()<<endl;

    while(!s.empty())
    {
    cout<<s.top()<<endl;
    s.pop();
    }

    system("pause");
    return 0;
}
